package day02;

public class demo6 {
    public static void main(String[] args) {
        abs(-5);
    }
    public static void abs(double x){
     if(x>0){
         System.out.println(x);
     }else{
         System.out.println(-x);
     }
    }
}
